home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / src / linux-headers-2.6.28-15 / include / linux / mxcfb.h < prev    next >
Encoding:
C/C++ Source or Header  |  2009-09-09  |  1.6 KB  |  76 lines

  1. /*
  2.  * Copyright 2004-2009 Freescale Semiconductor, Inc. All Rights Reserved.
  3.  */
  4.  
  5. /*
  6.  * The code contained herein is licensed under the GNU Lesser General
  7.  * Public License.  You may obtain a copy of the GNU Lesser General
  8.  * Public License Version 2.1 or later at the following locations:
  9.  *
  10.  * http://www.opensource.org/licenses/lgpl-license.html
  11.  * http://www.gnu.org/copyleft/lgpl.html
  12.  */
  13.  
  14. /*
  15.  * @file arch-mxc/   mxcfb.h
  16.  *
  17.  * @brief Global header file for the MXC Frame buffer
  18.  *
  19.  * @ingroup Framebuffer
  20.  */
  21. #ifndef __ASM_ARCH_MXCFB_H__
  22. #define __ASM_ARCH_MXCFB_H__
  23.  
  24. #include <linux/fb.h>
  25.  
  26. #define FB_SYNC_OE_LOW_ACT    0x80000000
  27. #define FB_SYNC_CLK_LAT_FALL    0x40000000
  28. #define FB_SYNC_DATA_INVERT    0x20000000
  29. #define FB_SYNC_CLK_IDLE_EN    0x10000000
  30. #define FB_SYNC_SHARP_MODE    0x08000000
  31. #define FB_SYNC_SWAP_RGB    0x04000000
  32.  
  33. struct mxcfb_gbl_alpha {
  34.     int enable;
  35.     int alpha;
  36. };
  37.  
  38. struct mxcfb_color_key {
  39.     int enable;
  40.     __u32 color_key;
  41. };
  42.  
  43. struct mxcfb_pos {
  44.     __u16 x;
  45.     __u16 y;
  46. };
  47.  
  48. #define MXCFB_WAIT_FOR_VSYNC    _IOW('F', 0x20, u_int32_t)
  49. #define MXCFB_SET_GBL_ALPHA     _IOW('F', 0x21, struct mxcfb_gbl_alpha)
  50. #define MXCFB_SET_CLR_KEY       _IOW('F', 0x22, struct mxcfb_color_key)
  51. #define MXCFB_SET_OVERLAY_POS   _IOW('F', 0x24, struct mxcfb_pos)
  52.  
  53. #ifdef __KERNEL__
  54.  
  55. extern struct fb_videomode mxcfb_modedb[];
  56. extern int mxcfb_modedb_sz;
  57.  
  58. enum {
  59.     MXCFB_REFRESH_OFF,
  60.     MXCFB_REFRESH_AUTO,
  61.     MXCFB_REFRESH_PARTIAL,
  62. };
  63.  
  64. struct mxcfb_rect {
  65.     u32 top;
  66.     u32 left;
  67.     u32 width;
  68.     u32 height;
  69. };
  70.  
  71. int mxcfb_set_refresh_mode(struct fb_info *fbi, int mode,
  72.                struct mxcfb_rect *update_region);
  73.  
  74. #endif                /* __KERNEL__ */
  75. #endif
  76.